package com.das.mechanic_base.bean.siveprocess;

import com.das.mechanic_base.widget.X3IntegerConverter;
import com.das.mechanic_base.widget.StringConverter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;
import java.util.List;

/**
 * 作者：zhanglei on 2020-03-19 16:49
 * <p>
 * 邮箱：916256628@qq.com
 */
@Entity
public class SiveProBean implements Serializable {

    @Id(autoincrement = true)
    private Long id;

    private Long index;

    @Convert(converter = StringConverter.class, columnType = String.class)
    private List<String> list;

    private String name;

    private String sn;

    @Convert(converter = X3IntegerConverter.class, columnType = String.class)
    private List<Long> resourceIdList;

    private boolean standardOrNot;

    @Convert(converter = StringConverter.class, columnType = String.class)
    private List<String> productCategoryNameList;

    private String exampleImgUrl;

    private String description;

    private String technicsSn;

    private String serviceBaseSn;

    private boolean needPhoto;

    public SiveProBean(String name, String sn, List<Long> idList, List<String> pathList) {
        this.name = name;
        this.sn = sn;
        this.resourceIdList = idList;
        this.list = pathList;
    }

    public SiveProBean(boolean standardOrNot, String name, String sn, List<Long> idList, List<String> pathList, String exampleUrl, List<String> nameList, String description, String technicSn, String serviceBaseSn, boolean needPhoto) {
        this.standardOrNot = standardOrNot;
        this.name = name;
        this.sn = sn;
        this.resourceIdList = idList;
        this.list = pathList;
        this.exampleImgUrl = exampleUrl;
        this.productCategoryNameList = nameList;
        this.description = description;
        this.technicsSn = technicSn;
        this.serviceBaseSn = serviceBaseSn;
        this.needPhoto = needPhoto;
    }

    @Generated(hash = 2067056923)
    public SiveProBean(Long id, Long index, List<String> list, String name, String sn, List<Long> resourceIdList, boolean standardOrNot, List<String> productCategoryNameList, String exampleImgUrl, String description,
            String technicsSn, String serviceBaseSn, boolean needPhoto) {
        this.id = id;
        this.index = index;
        this.list = list;
        this.name = name;
        this.sn = sn;
        this.resourceIdList = resourceIdList;
        this.standardOrNot = standardOrNot;
        this.productCategoryNameList = productCategoryNameList;
        this.exampleImgUrl = exampleImgUrl;
        this.description = description;
        this.technicsSn = technicsSn;
        this.serviceBaseSn = serviceBaseSn;
        this.needPhoto = needPhoto;
    }

    @Generated(hash = 245973860)
    public SiveProBean() {
    }


    @Override
    public String toString() {
        return "{" +
                "\"id\":" + id +
                ", \"index\":" + index +
                ", \"list\":" + list +
                ", \"name\":\'" + name + "\'" +
                ", \"sn\":\'" + sn + "\'" +
                ", \"resourceIdList\":" + resourceIdList +
                ", \"standardOrNot\":" + standardOrNot +
                ", \"productCategoryNameList\":" + productCategoryNameList +
                ", \"exampleImgUrl\":\'" + exampleImgUrl + "\'" +
                ", \"description\":\'" + description + "\'" +
                ", \"technicsSn\":\'" + technicsSn + "\'" +
                ", \"serviceBaseSn\":\'" + serviceBaseSn + "\'" +
                ", \"needPhoto\":" + needPhoto +
                '}';
    }

    public boolean getNeedPhoto() {
        return this.needPhoto;
    }

    public void setNeedPhoto(boolean needPhoto) {
        this.needPhoto = needPhoto;
    }

    public String getServiceBaseSn() {
        return this.serviceBaseSn;
    }

    public void setServiceBaseSn(String serviceBaseSn) {
        this.serviceBaseSn = serviceBaseSn;
    }

    public String getTechnicsSn() {
        return this.technicsSn;
    }

    public void setTechnicsSn(String technicsSn) {
        this.technicsSn = technicsSn;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getExampleImgUrl() {
        return this.exampleImgUrl;
    }

    public void setExampleImgUrl(String exampleImgUrl) {
        this.exampleImgUrl = exampleImgUrl;
    }

    public List<String> getProductCategoryNameList() {
        return this.productCategoryNameList;
    }

    public void setProductCategoryNameList(List<String> productCategoryNameList) {
        this.productCategoryNameList = productCategoryNameList;
    }

    public boolean getStandardOrNot() {
        return this.standardOrNot;
    }

    public void setStandardOrNot(boolean standardOrNot) {
        this.standardOrNot = standardOrNot;
    }

    public List<Long> getResourceIdList() {
        return this.resourceIdList;
    }

    public void setResourceIdList(List<Long> resourceIdList) {
        this.resourceIdList = resourceIdList;
    }

    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getList() {
        return this.list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public Long getIndex() {
        return this.index;
    }

    public void setIndex(Long index) {
        this.index = index;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
